package cn.hjh.service.Impl;

import cn.hjh.dao.GreetingDao;
import cn.hjh.service.Greeting;
import cn.hjh.service.GreetingService;

public class GreetingServiceImpl implements GreetingService {

    private GreetingDao greetingDao;
    public GreetingServiceImpl(){}

    @Override
    public void add(Greeting greeting) {
        greetingDao.save(greeting);
    }

    public GreetingServiceImpl(GreetingDao greetingDao,GreetingDao greetingDao1){
        this.greetingDao = greetingDao;
        this.greetingDao = greetingDao1;
    }

}
